# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python2-pytest-twisted
_pkgname=pytest-twisted
pkgver=1.12
pkgrel=4
pkgdesc='A twisted plugin for py.test.'
arch=('any')
license=('BSD')
url='https://pypi.org/project/pytest-twisted/#files'
depends=('python2' 'python2-greenlet' 'python2-twistedx' 'python2-pytest'
         'python2-decorator')
makedepends=('python2-setuptools' 'python2-pip' 'python2-wheel')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.zip")
sha512sums=('ae0caf7e22e37fbaf506e8d8b92e246439192e9e711ef68a26d432e845f73b7e0d33aafd2052d2a0e305b4cc0d5828ce04d6e0f9b3774afe4862b95e9098e32e')

build() {
  cd "$_pkgname-$pkgver"

  python2 setup.py build
}

package() {
  cd "$_pkgname-$pkgver"

  python2 setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build
}

